#include "eventsManager.h"

/*
    Is singleton
    Is a way to abstract from console
        - if it is needed we can change realisation of get() and show() methods
*/
EventsManager::EventsManager() {
    // private constructor
}

void EventsManager::show(QString message) {
    QTextStream cout(stdout, QIODevice::WriteOnly);
    cout << message << endl;
}

QString EventsManager::get() {
    QString message;
    QTextStream cin(stdin, QIODevice::ReadOnly);
    cin >> message;
    return message;
}

